<!-- HTML header for doxygen 1.9.6-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>CMSIS-Driver: GPIO Interface</title>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="tabs.js"></script>
<script type="text/javascript" src="footer.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
  $(document).ready(function() { init_search(); });
/* @license-end */
</script>
<script type="text/javascript" src="darkmode_toggle.js"></script>
<link href="extra_stylesheet.css" rel="stylesheet" type="text/css"/>
<link href="extra_navtree.css" rel="stylesheet" type="text/css"/>
<link href="extra_search.css" rel="stylesheet" type="text/css"/>
<link href="extra_tabs.css" rel="stylesheet" type="text/css"/>
<link href="version.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../version.js"></script>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 55px;">
  <td id="projectlogo" style="padding: 1.5em;"><img alt="Logo" src="cmsis_logo_white_small.png"/></td>
  <td style="padding-left: 1em; padding-bottom: 1em;padding-top: 1em;">
   <div id="projectname">CMSIS-Driver
   &#160;<span id="projectnumber"><script type="text/javascript">
     <!--
     writeHeader.call(this);
     writeVersionDropdown.call(this, "CMSIS-Driver");
     //-->
    </script>
   </span>
   </div>
   <div id="projectbrief">Peripheral Interface for Middleware and Application Code</div>
  </td>
   <td>        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <span id="MSearchSelect"                onmouseover="return searchBox.OnSearchSelectShow()"                onmouseout="return searchBox.OnSearchSelectHide()">&#160;</span>
          <input type="text" id="MSearchField" value="" placeholder="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.svg" alt=""/></a>
          </span>
        </div>
</td>
  <!--END !PROJECT_NAME-->
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<div id="CMSISnav" class="tabs1">
  <ul class="tablist">
    <script type="text/javascript">
      writeComponentTabs.call(this);
    </script>
  </ul>
</div>
<script type="text/javascript">
  writeSubComponentTabs.call(this);
</script>
<!-- Generated by Doxygen 1.9.6 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('group__gpio__interface__gr.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="summary">
<a href="#groups">Content</a> &#124;
<a href="#nested-classes">Data Structures</a> &#124;
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#enum-members">Enumerations</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle"><div class="title">GPIO Interface</div></div>
</div><!--header-->
<div class="contents">

<p>Driver API for GPIO Interface (Driver_GPIO.h)  
<a href="#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="groups" name="groups"></a>
Content</h2></td></tr>
<tr class="memitem:group__gpio__execution__status"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpio__execution__status.html">GPIO Status Error Codes</a></td></tr>
<tr class="memdesc:group__gpio__execution__status"><td class="mdescLeft">&#160;</td><td class="mdescRight">Negative values indicate errors (GPIO has specific codes in addition to common <a class="el" href="group__execution__status.html">Status Error Codes</a>). <br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:group__GPIO__events"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__GPIO__events.html">GPIO Events</a></td></tr>
<tr class="memdesc:group__GPIO__events"><td class="mdescLeft">&#160;</td><td class="mdescRight">The GPIO driver generates call back events that are notified via the function <a class="el" href="group__gpio__interface__gr.html#ga85dd1634405efb2eae2d3775ecdc6081">ARM_GPIO_SignalEvent</a>. <br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="nested-classes" name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr class="memitem:structARM__DRIVER__GPIO"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpio__interface__gr.html#structARM__DRIVER__GPIO">ARM_DRIVER_GPIO</a></td></tr>
<tr class="memdesc:structARM__DRIVER__GPIO"><td class="mdescLeft">&#160;</td><td class="mdescRight">Access structure of the GPIO Driver.  <a href="group__gpio__interface__gr.html#structARM__DRIVER__GPIO">More...</a><br /></td></tr>
<tr class="separator:structARM__DRIVER__GPIO"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="typedef-members" name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:gaf08560b02fd3c47a474eb9be26631640"><td class="memItemLeft" align="right" valign="top">typedef void(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpio__interface__gr.html#gaf08560b02fd3c47a474eb9be26631640">ARM_GPIO_SignalEvent_t</a>) (<a class="el" href="Driver__GPIO_8h.html#aa610a72c0924a56973780d7d1d4e538a">ARM_GPIO_Pin_t</a> pin, uint32_t event)</td></tr>
<tr class="separator:gaf08560b02fd3c47a474eb9be26631640"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="enum-members" name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:gadb33882caa9dc3a481d19ab16573dd4c"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpio__interface__gr.html#gadb33882caa9dc3a481d19ab16573dd4c">ARM_GPIO_DIRECTION</a> { <br />
&#160;&#160;<a class="el" href="group__gpio__interface__gr.html#gadb33882caa9dc3a481d19ab16573dd4ca58fb239e72a3f93e94f2efe71477bd18">ARM_GPIO_INPUT</a>
, <br />
&#160;&#160;<a class="el" href="group__gpio__interface__gr.html#gadb33882caa9dc3a481d19ab16573dd4cad4685767096d17e5acb6abf6c6495d06">ARM_GPIO_OUTPUT</a>
<br />
 }</td></tr>
<tr class="memdesc:gadb33882caa9dc3a481d19ab16573dd4c"><td class="mdescLeft">&#160;</td><td class="mdescRight">GPIO Direction.  <a href="group__gpio__interface__gr.html#gadb33882caa9dc3a481d19ab16573dd4c">More...</a><br /></td></tr>
<tr class="separator:gadb33882caa9dc3a481d19ab16573dd4c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga1fc02461f93fabddb49fd46513c7480b"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpio__interface__gr.html#ga1fc02461f93fabddb49fd46513c7480b">ARM_GPIO_OUTPUT_MODE</a> { <br />
&#160;&#160;<a class="el" href="group__gpio__interface__gr.html#ga1fc02461f93fabddb49fd46513c7480bac4b9f2ea6c849cf47d9ed2cf7ccf7a93">ARM_GPIO_PUSH_PULL</a>
, <br />
&#160;&#160;<a class="el" href="group__gpio__interface__gr.html#ga1fc02461f93fabddb49fd46513c7480ba0a24a2221d2d9a31dff9a81e3b7e888f">ARM_GPIO_OPEN_DRAIN</a>
<br />
 }</td></tr>
<tr class="memdesc:ga1fc02461f93fabddb49fd46513c7480b"><td class="mdescLeft">&#160;</td><td class="mdescRight">GPIO Output Mode.  <a href="group__gpio__interface__gr.html#ga1fc02461f93fabddb49fd46513c7480b">More...</a><br /></td></tr>
<tr class="separator:ga1fc02461f93fabddb49fd46513c7480b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga3e46add7954c3c9ba9617d630565c913"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpio__interface__gr.html#ga3e46add7954c3c9ba9617d630565c913">ARM_GPIO_PULL_RESISTOR</a> { <br />
&#160;&#160;<a class="el" href="group__gpio__interface__gr.html#ga3e46add7954c3c9ba9617d630565c913a187a7bb55ed81726845c8c194f28d49c">ARM_GPIO_PULL_NONE</a>
, <br />
&#160;&#160;<a class="el" href="group__gpio__interface__gr.html#ga3e46add7954c3c9ba9617d630565c913a73c7ba703ce0cd40f77392bb28a4a188">ARM_GPIO_PULL_UP</a>
, <br />
&#160;&#160;<a class="el" href="group__gpio__interface__gr.html#ga3e46add7954c3c9ba9617d630565c913a4fc8779c762a502dd029b7a676cc022b">ARM_GPIO_PULL_DOWN</a>
<br />
 }</td></tr>
<tr class="memdesc:ga3e46add7954c3c9ba9617d630565c913"><td class="mdescLeft">&#160;</td><td class="mdescRight">GPIO Pull Resistor.  <a href="group__gpio__interface__gr.html#ga3e46add7954c3c9ba9617d630565c913">More...</a><br /></td></tr>
<tr class="separator:ga3e46add7954c3c9ba9617d630565c913"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0df966ec6b2ebedd7880a3efc75976cd"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpio__interface__gr.html#ga0df966ec6b2ebedd7880a3efc75976cd">ARM_GPIO_EVENT_TRIGGER</a> { <br />
&#160;&#160;<a class="el" href="group__gpio__interface__gr.html#ga0df966ec6b2ebedd7880a3efc75976cda93171249f006c83b7661df73d976556d">ARM_GPIO_TRIGGER_NONE</a>
, <br />
&#160;&#160;<a class="el" href="group__gpio__interface__gr.html#ga0df966ec6b2ebedd7880a3efc75976cdaba20b1e31878cce514240db48ff72936">ARM_GPIO_TRIGGER_RISING_EDGE</a>
, <br />
&#160;&#160;<a class="el" href="group__gpio__interface__gr.html#ga0df966ec6b2ebedd7880a3efc75976cdafa65dc9f0e518b4d640e69e194ffd847">ARM_GPIO_TRIGGER_FALLING_EDGE</a>
, <br />
&#160;&#160;<a class="el" href="group__gpio__interface__gr.html#ga0df966ec6b2ebedd7880a3efc75976cdaf08214415e90ef3b65e3438b1b523873">ARM_GPIO_TRIGGER_EITHER_EDGE</a>
<br />
 }</td></tr>
<tr class="memdesc:ga0df966ec6b2ebedd7880a3efc75976cd"><td class="mdescLeft">&#160;</td><td class="mdescRight">GPIO Event Trigger.  <a href="group__gpio__interface__gr.html#ga0df966ec6b2ebedd7880a3efc75976cd">More...</a><br /></td></tr>
<tr class="separator:ga0df966ec6b2ebedd7880a3efc75976cd"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga10924781db8b42f1fc506bb83a6b7284"><td class="memItemLeft" align="right" valign="top">int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpio__interface__gr.html#ga10924781db8b42f1fc506bb83a6b7284">ARM_GPIO_Setup</a> (<a class="el" href="Driver__GPIO_8h.html#aa610a72c0924a56973780d7d1d4e538a">ARM_GPIO_Pin_t</a> pin, <a class="el" href="group__gpio__interface__gr.html#gaf08560b02fd3c47a474eb9be26631640">ARM_GPIO_SignalEvent_t</a> cb_event)</td></tr>
<tr class="memdesc:ga10924781db8b42f1fc506bb83a6b7284"><td class="mdescLeft">&#160;</td><td class="mdescRight">Setup GPIO Interface.  <br /></td></tr>
<tr class="separator:ga10924781db8b42f1fc506bb83a6b7284"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga518a307a98aec9d227db18819851363a"><td class="memItemLeft" align="right" valign="top">int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpio__interface__gr.html#ga518a307a98aec9d227db18819851363a">ARM_GPIO_SetDirection</a> (<a class="el" href="Driver__GPIO_8h.html#aa610a72c0924a56973780d7d1d4e538a">ARM_GPIO_Pin_t</a> pin, <a class="el" href="group__gpio__interface__gr.html#gadb33882caa9dc3a481d19ab16573dd4c">ARM_GPIO_DIRECTION</a> direction)</td></tr>
<tr class="memdesc:ga518a307a98aec9d227db18819851363a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set GPIO Direction.  <br /></td></tr>
<tr class="separator:ga518a307a98aec9d227db18819851363a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab47e3266116c09442a3b3672a8224835"><td class="memItemLeft" align="right" valign="top">int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpio__interface__gr.html#gab47e3266116c09442a3b3672a8224835">ARM_GPIO_SetOutputMode</a> (<a class="el" href="Driver__GPIO_8h.html#aa610a72c0924a56973780d7d1d4e538a">ARM_GPIO_Pin_t</a> pin, <a class="el" href="group__gpio__interface__gr.html#ga1fc02461f93fabddb49fd46513c7480b">ARM_GPIO_OUTPUT_MODE</a> mode)</td></tr>
<tr class="memdesc:gab47e3266116c09442a3b3672a8224835"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set GPIO Output Mode.  <br /></td></tr>
<tr class="separator:gab47e3266116c09442a3b3672a8224835"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga2c6ded4151e86ac0ee84d108fcfb661f"><td class="memItemLeft" align="right" valign="top">int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpio__interface__gr.html#ga2c6ded4151e86ac0ee84d108fcfb661f">ARM_GPIO_SetPullResistor</a> (<a class="el" href="Driver__GPIO_8h.html#aa610a72c0924a56973780d7d1d4e538a">ARM_GPIO_Pin_t</a> pin, <a class="el" href="group__gpio__interface__gr.html#ga3e46add7954c3c9ba9617d630565c913">ARM_GPIO_PULL_RESISTOR</a> resistor)</td></tr>
<tr class="memdesc:ga2c6ded4151e86ac0ee84d108fcfb661f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set GPIO Pull Resistor.  <br /></td></tr>
<tr class="separator:ga2c6ded4151e86ac0ee84d108fcfb661f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga03c0ab613fa56b461be82777feea1a6d"><td class="memItemLeft" align="right" valign="top">int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpio__interface__gr.html#ga03c0ab613fa56b461be82777feea1a6d">ARM_GPIO_SetEventTrigger</a> (<a class="el" href="Driver__GPIO_8h.html#aa610a72c0924a56973780d7d1d4e538a">ARM_GPIO_Pin_t</a> pin, <a class="el" href="group__gpio__interface__gr.html#ga0df966ec6b2ebedd7880a3efc75976cd">ARM_GPIO_EVENT_TRIGGER</a> trigger)</td></tr>
<tr class="memdesc:ga03c0ab613fa56b461be82777feea1a6d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set GPIO Event Trigger.  <br /></td></tr>
<tr class="separator:ga03c0ab613fa56b461be82777feea1a6d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gacdac385c2d5e420b95740749d3f428af"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpio__interface__gr.html#gacdac385c2d5e420b95740749d3f428af">ARM_GPIO_SetOutput</a> (<a class="el" href="Driver__GPIO_8h.html#aa610a72c0924a56973780d7d1d4e538a">ARM_GPIO_Pin_t</a> pin, uint32_t val)</td></tr>
<tr class="memdesc:gacdac385c2d5e420b95740749d3f428af"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set GPIO Output Level.  <br /></td></tr>
<tr class="separator:gacdac385c2d5e420b95740749d3f428af"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6259ec39507a5a59a47ef935bd83e41c"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpio__interface__gr.html#ga6259ec39507a5a59a47ef935bd83e41c">ARM_GPIO_GetInput</a> (<a class="el" href="Driver__GPIO_8h.html#aa610a72c0924a56973780d7d1d4e538a">ARM_GPIO_Pin_t</a> pin)</td></tr>
<tr class="memdesc:ga6259ec39507a5a59a47ef935bd83e41c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get GPIO Input Level.  <br /></td></tr>
<tr class="separator:ga6259ec39507a5a59a47ef935bd83e41c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga85dd1634405efb2eae2d3775ecdc6081"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpio__interface__gr.html#ga85dd1634405efb2eae2d3775ecdc6081">ARM_GPIO_SignalEvent</a> (<a class="el" href="Driver__GPIO_8h.html#aa610a72c0924a56973780d7d1d4e538a">ARM_GPIO_Pin_t</a> pin, uint32_t event)</td></tr>
<tr class="memdesc:ga85dd1634405efb2eae2d3775ecdc6081"><td class="mdescLeft">&#160;</td><td class="mdescRight">Signal GPIO Events.  <br /></td></tr>
<tr class="separator:ga85dd1634405efb2eae2d3775ecdc6081"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Description</h2>
<p>Driver API for GPIO Interface (Driver_GPIO.h) </p>
<p>The <b>General-purpose Input/Output Interface</b> (GPIO) features Input/Output operations on pin level (does not support simultaneous operations on multiple pins belonging to the same port).</p>
<p>Features:</p><ul>
<li>basic pin configuration (direction, output mode, pull-resistor, event trigger) excluding advanced settings (drive strength or speed, input filter, ...),</li>
<li>events on edge detection,</li>
<li>setting outputs,</li>
<li>reading inputs.</li>
</ul>
<p>Each function operates on a pin level and uses a pin identification as the first parameter. Pin identification is a virtual number which is mapped to an actual pin.</p>
<p><b>GPIO API</b></p>
<p>The following header files define the Application Programming Interface (API) for the GPIO interface:</p><ul>
<li><b>Driver_GPIO.h</b> : Driver API for GPIO Interface</li>
</ul>
<p>The driver implementation is a typical part of the Device Family Pack (DFP) that supports the peripherals of the microcontroller family.</p>
<p><b>Driver Functions</b></p>
<p>The driver functions are published in the access struct as explained in <a class="el" href="theoryOperation.html#DriverFunctions">Common Driver Functions</a></p><ul>
<li><a class="el" href="group__gpio__interface__gr.html#structARM__DRIVER__GPIO">ARM_DRIVER_GPIO</a> : access struct for GPIO driver functions</li>
</ul>
<p><b>Example Code</b></p>
<p>The following example code shows the usage of the GPIO interface.</p>
<div class="fragment"><div class="line"><span class="preprocessor">#include &quot;<a class="code" href="Driver__GPIO_8h.html">Driver_GPIO.h</a>&quot;</span></div>
<div class="line"> </div>
<div class="line"><span class="comment">/* GPIO driver instance */</span></div>
<div class="line"><span class="keyword">extern</span> <a class="code hl_struct" href="group__gpio__interface__gr.html#structARM__DRIVER__GPIO">ARM_DRIVER_GPIO</a>             Driver_GPIO0;</div>
<div class="line"><span class="keyword">static</span> <a class="code hl_struct" href="group__gpio__interface__gr.html#structARM__DRIVER__GPIO">ARM_DRIVER_GPIO</a> *GPIOdrv = &amp;Driver_GPIO0;</div>
<div class="line"> </div>
<div class="line"><span class="comment">/* Pin mapping */</span></div>
<div class="line"><span class="preprocessor">#define GPIO_PIN0       0U</span></div>
<div class="line"><span class="preprocessor">#define GPIO_PIN1       1U</span></div>
<div class="line"><span class="preprocessor">#define GPIO_PIN2       2U</span></div>
<div class="line"><span class="preprocessor">#define GPIO_PIN3       3U</span></div>
<div class="line"> </div>
<div class="line"><span class="comment">/* GPIO Signal Event callback */</span></div>
<div class="line"><span class="keyword">static</span> <span class="keywordtype">void</span> GPIO_SignalEvent (<a class="code hl_typedef" href="Driver__GPIO_8h.html#aa610a72c0924a56973780d7d1d4e538a">ARM_GPIO_Pin_t</a> pin, uint32_t event) {</div>
<div class="line"> </div>
<div class="line">  <span class="keywordflow">switch</span> (pin) {</div>
<div class="line">    <span class="keywordflow">case</span> GPIO_PIN1:</div>
<div class="line">      <span class="comment">/* Events on pin GPIO_PIN1 */</span></div>
<div class="line">      <span class="keywordflow">if</span> (event &amp; <a class="code hl_define" href="group__GPIO__events.html#ga5b3eebcd265811423a9e3cfc86de7981">ARM_GPIO_EVENT_RISING_EDGE</a>) {</div>
<div class="line">        <span class="comment">/* Rising-edge detected */</span></div>
<div class="line">      }</div>
<div class="line">      <span class="keywordflow">if</span> (event &amp; <a class="code hl_define" href="group__GPIO__events.html#ga786063babcfbf55e38bb09e62e6b4e8e">ARM_GPIO_EVENT_FALLING_EDGE</a>) {</div>
<div class="line">        <span class="comment">/* Falling-edge detected */</span></div>
<div class="line">      }</div>
<div class="line">      <span class="keywordflow">break</span>;</div>
<div class="line">  }</div>
<div class="line">}</div>
<div class="line"> </div>
<div class="line"><span class="comment">/* Get GPIO Input 0 */</span></div>
<div class="line">uint32_t GPIO_GetInput0 (<span class="keywordtype">void</span>) {</div>
<div class="line">  <span class="keywordflow">return</span> (GPIOdrv-&gt;<a class="code hl_variable" href="group__gpio__interface__gr.html#abeffcbd4e00b34c08cd650605f4965d5">GetInput</a>(GPIO_PIN0));</div>
<div class="line">}</div>
<div class="line"> </div>
<div class="line"><span class="comment">/* Get GPIO Input 1 */</span></div>
<div class="line">uint32_t GPIO_GetInput1 (<span class="keywordtype">void</span>) {</div>
<div class="line">  <span class="keywordflow">return</span> (GPIOdrv-&gt;<a class="code hl_variable" href="group__gpio__interface__gr.html#abeffcbd4e00b34c08cd650605f4965d5">GetInput</a>(GPIO_PIN1));</div>
<div class="line">}</div>
<div class="line"> </div>
<div class="line"><span class="comment">/* Set GPIO Output Pin 2 */</span></div>
<div class="line"><span class="keywordtype">void</span> GPIO_SetOutput2 (uint32_t val) {</div>
<div class="line">  GPIOdrv-&gt;<a class="code hl_variable" href="group__gpio__interface__gr.html#ae3f787c2130ea5b9fd0246c08054e28a">SetOutput</a>(GPIO_PIN2, val);</div>
<div class="line">}</div>
<div class="line"> </div>
<div class="line"><span class="comment">/* Set GPIO Output Pin 3 */</span></div>
<div class="line"><span class="keywordtype">void</span> GPIO_SetOutput3 (uint32_t val) {</div>
<div class="line">  GPIOdrv-&gt;<a class="code hl_variable" href="group__gpio__interface__gr.html#ae3f787c2130ea5b9fd0246c08054e28a">SetOutput</a>(GPIO_PIN3, val);</div>
<div class="line">}</div>
<div class="line"> </div>
<div class="line"><span class="comment">/* Setup GPIO pins */</span></div>
<div class="line"><span class="keywordtype">void</span> GPIO_Setup (<span class="keywordtype">void</span>) {</div>
<div class="line"> </div>
<div class="line">  <span class="comment">/* Pin GPIO_PIN0: Input */</span></div>
<div class="line">  GPIOdrv-&gt;<a class="code hl_variable" href="group__gpio__interface__gr.html#a1752c368ad90bf9d0f520de9b94b726c">Setup</a>          (GPIO_PIN0, NULL);</div>
<div class="line">  GPIOdrv-&gt;<a class="code hl_variable" href="group__gpio__interface__gr.html#a357c46bfdc11484fd08daaf27255440f">SetDirection</a>   (GPIO_PIN0, <a class="code hl_enumvalue" href="Driver__GPIO_8h.html#gadb33882caa9dc3a481d19ab16573dd4ca58fb239e72a3f93e94f2efe71477bd18">ARM_GPIO_INPUT</a>);</div>
<div class="line"> </div>
<div class="line">  <span class="comment">/* Pin GPIO_PIN1: Input with trigger on rising and falling edge */</span></div>
<div class="line">  GPIOdrv-&gt;<a class="code hl_variable" href="group__gpio__interface__gr.html#a1752c368ad90bf9d0f520de9b94b726c">Setup</a>          (GPIO_PIN1, GPIO_SignalEvent);</div>
<div class="line">  GPIOdrv-&gt;<a class="code hl_variable" href="group__gpio__interface__gr.html#a357c46bfdc11484fd08daaf27255440f">SetDirection</a>   (GPIO_PIN1, <a class="code hl_enumvalue" href="Driver__GPIO_8h.html#gadb33882caa9dc3a481d19ab16573dd4ca58fb239e72a3f93e94f2efe71477bd18">ARM_GPIO_INPUT</a>);</div>
<div class="line">  GPIOdrv-&gt;<a class="code hl_variable" href="group__gpio__interface__gr.html#aa1e00b5d33fa1f09e96c7b8b1de1deec">SetEventTrigger</a>(GPIO_PIN1, <a class="code hl_enumvalue" href="Driver__GPIO_8h.html#ga0df966ec6b2ebedd7880a3efc75976cdaf08214415e90ef3b65e3438b1b523873">ARM_GPIO_TRIGGER_EITHER_EDGE</a>);</div>
<div class="line"> </div>
<div class="line">  <span class="comment">/* Pin GPIO_PIN2: Output push-pull (initial level 0) */</span></div>
<div class="line">  GPIOdrv-&gt;<a class="code hl_variable" href="group__gpio__interface__gr.html#a1752c368ad90bf9d0f520de9b94b726c">Setup</a>          (GPIO_PIN2, NULL);</div>
<div class="line">  GPIOdrv-&gt;<a class="code hl_variable" href="group__gpio__interface__gr.html#ae3f787c2130ea5b9fd0246c08054e28a">SetOutput</a>      (GPIO_PIN2, 0U);</div>
<div class="line">  GPIOdrv-&gt;<a class="code hl_variable" href="group__gpio__interface__gr.html#a357c46bfdc11484fd08daaf27255440f">SetDirection</a>   (GPIO_PIN2, <a class="code hl_enumvalue" href="Driver__GPIO_8h.html#gadb33882caa9dc3a481d19ab16573dd4cad4685767096d17e5acb6abf6c6495d06">ARM_GPIO_OUTPUT</a>);</div>
<div class="line"> </div>
<div class="line">  <span class="comment">/* Pin GPIO_PIN3: Output open-drain with pull-up resistor (initial level 1) */</span></div>
<div class="line">  GPIOdrv-&gt;<a class="code hl_variable" href="group__gpio__interface__gr.html#a1752c368ad90bf9d0f520de9b94b726c">Setup</a>          (GPIO_PIN3, NULL);</div>
<div class="line">  GPIOdrv-&gt;<a class="code hl_variable" href="group__gpio__interface__gr.html#a26beab12383d7ec6036da59fc1bb7251">SetPullResistor</a>(GPIO_PIN3, <a class="code hl_enumvalue" href="Driver__GPIO_8h.html#ga3e46add7954c3c9ba9617d630565c913a73c7ba703ce0cd40f77392bb28a4a188">ARM_GPIO_PULL_UP</a>);</div>
<div class="line">  GPIOdrv-&gt;<a class="code hl_variable" href="group__gpio__interface__gr.html#af5b45e3d2a2399ad693437a4e26ff119">SetOutputMode</a>  (GPIO_PIN3, <a class="code hl_enumvalue" href="Driver__GPIO_8h.html#ga1fc02461f93fabddb49fd46513c7480ba0a24a2221d2d9a31dff9a81e3b7e888f">ARM_GPIO_OPEN_DRAIN</a>);</div>
<div class="line">  GPIOdrv-&gt;<a class="code hl_variable" href="group__gpio__interface__gr.html#ae3f787c2130ea5b9fd0246c08054e28a">SetOutput</a>      (GPIO_PIN3, 1U);</div>
<div class="line">  GPIOdrv-&gt;<a class="code hl_variable" href="group__gpio__interface__gr.html#a357c46bfdc11484fd08daaf27255440f">SetDirection</a>   (GPIO_PIN3, <a class="code hl_enumvalue" href="Driver__GPIO_8h.html#gadb33882caa9dc3a481d19ab16573dd4cad4685767096d17e5acb6abf6c6495d06">ARM_GPIO_OUTPUT</a>);</div>
<div class="line">}</div>
<div class="ttc" id="aDriver__GPIO_8h_html"><div class="ttname"><a href="Driver__GPIO_8h.html">Driver_GPIO.h</a></div></div>
<div class="ttc" id="aDriver__GPIO_8h_html_aa610a72c0924a56973780d7d1d4e538a"><div class="ttname"><a href="Driver__GPIO_8h.html#aa610a72c0924a56973780d7d1d4e538a">ARM_GPIO_Pin_t</a></div><div class="ttdeci">uint32_t ARM_GPIO_Pin_t</div><div class="ttdoc">GPIO Pin.</div><div class="ttdef"><b>Definition:</b> Driver_GPIO.h:38</div></div>
<div class="ttc" id="aDriver__GPIO_8h_html_ga0df966ec6b2ebedd7880a3efc75976cdaf08214415e90ef3b65e3438b1b523873"><div class="ttname"><a href="Driver__GPIO_8h.html#ga0df966ec6b2ebedd7880a3efc75976cdaf08214415e90ef3b65e3438b1b523873">ARM_GPIO_TRIGGER_EITHER_EDGE</a></div><div class="ttdeci">@ ARM_GPIO_TRIGGER_EITHER_EDGE</div><div class="ttdoc">Either edge (rising and falling)</div><div class="ttdef"><b>Definition:</b> Driver_GPIO.h:72</div></div>
<div class="ttc" id="aDriver__GPIO_8h_html_ga1fc02461f93fabddb49fd46513c7480ba0a24a2221d2d9a31dff9a81e3b7e888f"><div class="ttname"><a href="Driver__GPIO_8h.html#ga1fc02461f93fabddb49fd46513c7480ba0a24a2221d2d9a31dff9a81e3b7e888f">ARM_GPIO_OPEN_DRAIN</a></div><div class="ttdeci">@ ARM_GPIO_OPEN_DRAIN</div><div class="ttdoc">Open-drain.</div><div class="ttdef"><b>Definition:</b> Driver_GPIO.h:53</div></div>
<div class="ttc" id="aDriver__GPIO_8h_html_ga3e46add7954c3c9ba9617d630565c913a73c7ba703ce0cd40f77392bb28a4a188"><div class="ttname"><a href="Driver__GPIO_8h.html#ga3e46add7954c3c9ba9617d630565c913a73c7ba703ce0cd40f77392bb28a4a188">ARM_GPIO_PULL_UP</a></div><div class="ttdeci">@ ARM_GPIO_PULL_UP</div><div class="ttdoc">Pull-up.</div><div class="ttdef"><b>Definition:</b> Driver_GPIO.h:61</div></div>
<div class="ttc" id="aDriver__GPIO_8h_html_gadb33882caa9dc3a481d19ab16573dd4ca58fb239e72a3f93e94f2efe71477bd18"><div class="ttname"><a href="Driver__GPIO_8h.html#gadb33882caa9dc3a481d19ab16573dd4ca58fb239e72a3f93e94f2efe71477bd18">ARM_GPIO_INPUT</a></div><div class="ttdeci">@ ARM_GPIO_INPUT</div><div class="ttdoc">Input (default)</div><div class="ttdef"><b>Definition:</b> Driver_GPIO.h:44</div></div>
<div class="ttc" id="aDriver__GPIO_8h_html_gadb33882caa9dc3a481d19ab16573dd4cad4685767096d17e5acb6abf6c6495d06"><div class="ttname"><a href="Driver__GPIO_8h.html#gadb33882caa9dc3a481d19ab16573dd4cad4685767096d17e5acb6abf6c6495d06">ARM_GPIO_OUTPUT</a></div><div class="ttdeci">@ ARM_GPIO_OUTPUT</div><div class="ttdoc">Output.</div><div class="ttdef"><b>Definition:</b> Driver_GPIO.h:45</div></div>
<div class="ttc" id="agroup__GPIO__events_html_ga5b3eebcd265811423a9e3cfc86de7981"><div class="ttname"><a href="group__GPIO__events.html#ga5b3eebcd265811423a9e3cfc86de7981">ARM_GPIO_EVENT_RISING_EDGE</a></div><div class="ttdeci">#define ARM_GPIO_EVENT_RISING_EDGE</div><div class="ttdoc">Rising-edge detected.</div></div>
<div class="ttc" id="agroup__GPIO__events_html_ga786063babcfbf55e38bb09e62e6b4e8e"><div class="ttname"><a href="group__GPIO__events.html#ga786063babcfbf55e38bb09e62e6b4e8e">ARM_GPIO_EVENT_FALLING_EDGE</a></div><div class="ttdeci">#define ARM_GPIO_EVENT_FALLING_EDGE</div><div class="ttdoc">Falling-edge detected.</div></div>
<div class="ttc" id="agroup__gpio__interface__gr_html_a1752c368ad90bf9d0f520de9b94b726c"><div class="ttname"><a href="group__gpio__interface__gr.html#a1752c368ad90bf9d0f520de9b94b726c">ARM_DRIVER_GPIO::Setup</a></div><div class="ttdeci">int32_t(* Setup)(ARM_GPIO_Pin_t pin, ARM_GPIO_SignalEvent_t cb_event)</div><div class="ttdoc">Pointer to ARM_GPIO_Setup : Setup GPIO Interface.</div><div class="ttdef"><b>Definition:</b> Driver_GPIO.h:141</div></div>
<div class="ttc" id="agroup__gpio__interface__gr_html_a26beab12383d7ec6036da59fc1bb7251"><div class="ttname"><a href="group__gpio__interface__gr.html#a26beab12383d7ec6036da59fc1bb7251">ARM_DRIVER_GPIO::SetPullResistor</a></div><div class="ttdeci">int32_t(* SetPullResistor)(ARM_GPIO_Pin_t pin, ARM_GPIO_PULL_RESISTOR resistor)</div><div class="ttdoc">Pointer to ARM_GPIO_SetPullResistor : Set GPIO Pull Resistor.</div><div class="ttdef"><b>Definition:</b> Driver_GPIO.h:144</div></div>
<div class="ttc" id="agroup__gpio__interface__gr_html_a357c46bfdc11484fd08daaf27255440f"><div class="ttname"><a href="group__gpio__interface__gr.html#a357c46bfdc11484fd08daaf27255440f">ARM_DRIVER_GPIO::SetDirection</a></div><div class="ttdeci">int32_t(* SetDirection)(ARM_GPIO_Pin_t pin, ARM_GPIO_DIRECTION direction)</div><div class="ttdoc">Pointer to ARM_GPIO_SetDirection : Set GPIO Direction.</div><div class="ttdef"><b>Definition:</b> Driver_GPIO.h:142</div></div>
<div class="ttc" id="agroup__gpio__interface__gr_html_aa1e00b5d33fa1f09e96c7b8b1de1deec"><div class="ttname"><a href="group__gpio__interface__gr.html#aa1e00b5d33fa1f09e96c7b8b1de1deec">ARM_DRIVER_GPIO::SetEventTrigger</a></div><div class="ttdeci">int32_t(* SetEventTrigger)(ARM_GPIO_Pin_t pin, ARM_GPIO_EVENT_TRIGGER trigger)</div><div class="ttdoc">Pointer to ARM_GPIO_SetEventTrigger : Set GPIO Event Trigger.</div><div class="ttdef"><b>Definition:</b> Driver_GPIO.h:145</div></div>
<div class="ttc" id="agroup__gpio__interface__gr_html_abeffcbd4e00b34c08cd650605f4965d5"><div class="ttname"><a href="group__gpio__interface__gr.html#abeffcbd4e00b34c08cd650605f4965d5">ARM_DRIVER_GPIO::GetInput</a></div><div class="ttdeci">uint32_t(* GetInput)(ARM_GPIO_Pin_t pin)</div><div class="ttdoc">Pointer to ARM_GPIO_GetInput : Get GPIO Input Level.</div><div class="ttdef"><b>Definition:</b> Driver_GPIO.h:147</div></div>
<div class="ttc" id="agroup__gpio__interface__gr_html_ae3f787c2130ea5b9fd0246c08054e28a"><div class="ttname"><a href="group__gpio__interface__gr.html#ae3f787c2130ea5b9fd0246c08054e28a">ARM_DRIVER_GPIO::SetOutput</a></div><div class="ttdeci">void(* SetOutput)(ARM_GPIO_Pin_t pin, uint32_t val)</div><div class="ttdoc">Pointer to ARM_GPIO_SetOutput : Set GPIO Output Level.</div><div class="ttdef"><b>Definition:</b> Driver_GPIO.h:146</div></div>
<div class="ttc" id="agroup__gpio__interface__gr_html_af5b45e3d2a2399ad693437a4e26ff119"><div class="ttname"><a href="group__gpio__interface__gr.html#af5b45e3d2a2399ad693437a4e26ff119">ARM_DRIVER_GPIO::SetOutputMode</a></div><div class="ttdeci">int32_t(* SetOutputMode)(ARM_GPIO_Pin_t pin, ARM_GPIO_OUTPUT_MODE mode)</div><div class="ttdoc">Pointer to ARM_GPIO_SetOutputMode : Set GPIO Output Mode.</div><div class="ttdef"><b>Definition:</b> Driver_GPIO.h:143</div></div>
<div class="ttc" id="agroup__gpio__interface__gr_html_structARM__DRIVER__GPIO"><div class="ttname"><a href="group__gpio__interface__gr.html#structARM__DRIVER__GPIO">ARM_DRIVER_GPIO</a></div><div class="ttdoc">Access structure of the GPIO Driver.</div><div class="ttdef"><b>Definition:</b> Driver_GPIO.h:140</div></div>
</div><!-- fragment --> <hr/><h2 class="groupheader">Data Structure Documentation</h2>
<a name="structARM__DRIVER__GPIO" id="structARM__DRIVER__GPIO"></a>
<h2 class="memtitle"><span class="permalink"><a href="#structARM__DRIVER__GPIO">&#9670;&#160;</a></span>ARM_DRIVER_GPIO</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct ARM_DRIVER_GPIO</td>
        </tr>
      </table>
</div><div class="memdoc">
<div class="textblock"><p>Access structure of the GPIO Driver. </p>
<p>The functions of the GPIO driver are accessed by function pointers exposed by this structure. Refer to <a class="el" href="theoryOperation.html#DriverFunctions">Common Driver Functions</a> for overview information.</p>
<p>Each instance of a GPIO interface provides such an access structure. The instance is identified by a postfix number in the symbol name of the access structure, for example:</p><ul>
<li><b>Driver_GPIO0</b> is the name of the access struct of the first instance (no. 0).</li>
<li><b>Driver_GPIO1</b> is the name of the access struct of the second instance (no. 1).</li>
</ul>
<p>A middleware configuration setting allows connecting the middleware to a specific driver instance <b>Driver_GPIO<em>n</em></b>. The default is <span class="XML-Token">0</span>, which connects a middleware to the first instance of a driver. </p>
</div><table class="memberdecls">
<tr><td colspan="2"><h3>Data Fields</h3></td></tr>
<tr class="memitem:a1752c368ad90bf9d0f520de9b94b726c"><td class="memItemLeft" align="right" valign="top">int32_t(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpio__interface__gr.html#a1752c368ad90bf9d0f520de9b94b726c">Setup</a> )(<a class="el" href="Driver__GPIO_8h.html#aa610a72c0924a56973780d7d1d4e538a">ARM_GPIO_Pin_t</a> pin, <a class="el" href="group__gpio__interface__gr.html#gaf08560b02fd3c47a474eb9be26631640">ARM_GPIO_SignalEvent_t</a> cb_event)</td></tr>
<tr class="memdesc:a1752c368ad90bf9d0f520de9b94b726c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Pointer to <a class="el" href="group__gpio__interface__gr.html#ga10924781db8b42f1fc506bb83a6b7284">ARM_GPIO_Setup</a> : Setup GPIO Interface.  <br /></td></tr>
<tr class="separator:a1752c368ad90bf9d0f520de9b94b726c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a357c46bfdc11484fd08daaf27255440f"><td class="memItemLeft" align="right" valign="top">int32_t(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpio__interface__gr.html#a357c46bfdc11484fd08daaf27255440f">SetDirection</a> )(<a class="el" href="Driver__GPIO_8h.html#aa610a72c0924a56973780d7d1d4e538a">ARM_GPIO_Pin_t</a> pin, <a class="el" href="group__gpio__interface__gr.html#gadb33882caa9dc3a481d19ab16573dd4c">ARM_GPIO_DIRECTION</a> direction)</td></tr>
<tr class="memdesc:a357c46bfdc11484fd08daaf27255440f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Pointer to <a class="el" href="group__gpio__interface__gr.html#ga518a307a98aec9d227db18819851363a">ARM_GPIO_SetDirection</a> : Set GPIO Direction.  <br /></td></tr>
<tr class="separator:a357c46bfdc11484fd08daaf27255440f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af5b45e3d2a2399ad693437a4e26ff119"><td class="memItemLeft" align="right" valign="top">int32_t(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpio__interface__gr.html#af5b45e3d2a2399ad693437a4e26ff119">SetOutputMode</a> )(<a class="el" href="Driver__GPIO_8h.html#aa610a72c0924a56973780d7d1d4e538a">ARM_GPIO_Pin_t</a> pin, <a class="el" href="group__gpio__interface__gr.html#ga1fc02461f93fabddb49fd46513c7480b">ARM_GPIO_OUTPUT_MODE</a> mode)</td></tr>
<tr class="memdesc:af5b45e3d2a2399ad693437a4e26ff119"><td class="mdescLeft">&#160;</td><td class="mdescRight">Pointer to <a class="el" href="group__gpio__interface__gr.html#gab47e3266116c09442a3b3672a8224835">ARM_GPIO_SetOutputMode</a> : Set GPIO Output Mode.  <br /></td></tr>
<tr class="separator:af5b45e3d2a2399ad693437a4e26ff119"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a26beab12383d7ec6036da59fc1bb7251"><td class="memItemLeft" align="right" valign="top">int32_t(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpio__interface__gr.html#a26beab12383d7ec6036da59fc1bb7251">SetPullResistor</a> )(<a class="el" href="Driver__GPIO_8h.html#aa610a72c0924a56973780d7d1d4e538a">ARM_GPIO_Pin_t</a> pin, <a class="el" href="group__gpio__interface__gr.html#ga3e46add7954c3c9ba9617d630565c913">ARM_GPIO_PULL_RESISTOR</a> resistor)</td></tr>
<tr class="memdesc:a26beab12383d7ec6036da59fc1bb7251"><td class="mdescLeft">&#160;</td><td class="mdescRight">Pointer to <a class="el" href="group__gpio__interface__gr.html#ga2c6ded4151e86ac0ee84d108fcfb661f">ARM_GPIO_SetPullResistor</a> : Set GPIO Pull Resistor.  <br /></td></tr>
<tr class="separator:a26beab12383d7ec6036da59fc1bb7251"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa1e00b5d33fa1f09e96c7b8b1de1deec"><td class="memItemLeft" align="right" valign="top">int32_t(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpio__interface__gr.html#aa1e00b5d33fa1f09e96c7b8b1de1deec">SetEventTrigger</a> )(<a class="el" href="Driver__GPIO_8h.html#aa610a72c0924a56973780d7d1d4e538a">ARM_GPIO_Pin_t</a> pin, <a class="el" href="group__gpio__interface__gr.html#ga0df966ec6b2ebedd7880a3efc75976cd">ARM_GPIO_EVENT_TRIGGER</a> trigger)</td></tr>
<tr class="memdesc:aa1e00b5d33fa1f09e96c7b8b1de1deec"><td class="mdescLeft">&#160;</td><td class="mdescRight">Pointer to <a class="el" href="group__gpio__interface__gr.html#ga03c0ab613fa56b461be82777feea1a6d">ARM_GPIO_SetEventTrigger</a> : Set GPIO Event Trigger.  <br /></td></tr>
<tr class="separator:aa1e00b5d33fa1f09e96c7b8b1de1deec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae3f787c2130ea5b9fd0246c08054e28a"><td class="memItemLeft" align="right" valign="top">void(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpio__interface__gr.html#ae3f787c2130ea5b9fd0246c08054e28a">SetOutput</a> )(<a class="el" href="Driver__GPIO_8h.html#aa610a72c0924a56973780d7d1d4e538a">ARM_GPIO_Pin_t</a> pin, uint32_t val)</td></tr>
<tr class="memdesc:ae3f787c2130ea5b9fd0246c08054e28a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Pointer to <a class="el" href="group__gpio__interface__gr.html#gacdac385c2d5e420b95740749d3f428af">ARM_GPIO_SetOutput</a> : Set GPIO Output Level.  <br /></td></tr>
<tr class="separator:ae3f787c2130ea5b9fd0246c08054e28a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abeffcbd4e00b34c08cd650605f4965d5"><td class="memItemLeft" align="right" valign="top">uint32_t(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpio__interface__gr.html#abeffcbd4e00b34c08cd650605f4965d5">GetInput</a> )(<a class="el" href="Driver__GPIO_8h.html#aa610a72c0924a56973780d7d1d4e538a">ARM_GPIO_Pin_t</a> pin)</td></tr>
<tr class="memdesc:abeffcbd4e00b34c08cd650605f4965d5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Pointer to <a class="el" href="group__gpio__interface__gr.html#ga6259ec39507a5a59a47ef935bd83e41c">ARM_GPIO_GetInput</a> : Get GPIO Input Level.  <br /></td></tr>
<tr class="separator:abeffcbd4e00b34c08cd650605f4965d5"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h4 class="groupheader">Field Documentation</h4>
<a id="a1752c368ad90bf9d0f520de9b94b726c" name="a1752c368ad90bf9d0f520de9b94b726c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1752c368ad90bf9d0f520de9b94b726c">&#9670;&#160;</a></span>Setup</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t(* Setup) (<a class="el" href="Driver__GPIO_8h.html#aa610a72c0924a56973780d7d1d4e538a">ARM_GPIO_Pin_t</a> pin, <a class="el" href="group__gpio__interface__gr.html#gaf08560b02fd3c47a474eb9be26631640">ARM_GPIO_SignalEvent_t</a> cb_event)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Pointer to <a class="el" href="group__gpio__interface__gr.html#ga10924781db8b42f1fc506bb83a6b7284">ARM_GPIO_Setup</a> : Setup GPIO Interface. </p>

</div>
</div>
<a id="a357c46bfdc11484fd08daaf27255440f" name="a357c46bfdc11484fd08daaf27255440f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a357c46bfdc11484fd08daaf27255440f">&#9670;&#160;</a></span>SetDirection</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t(* SetDirection) (<a class="el" href="Driver__GPIO_8h.html#aa610a72c0924a56973780d7d1d4e538a">ARM_GPIO_Pin_t</a> pin, <a class="el" href="group__gpio__interface__gr.html#gadb33882caa9dc3a481d19ab16573dd4c">ARM_GPIO_DIRECTION</a> direction)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Pointer to <a class="el" href="group__gpio__interface__gr.html#ga518a307a98aec9d227db18819851363a">ARM_GPIO_SetDirection</a> : Set GPIO Direction. </p>

</div>
</div>
<a id="af5b45e3d2a2399ad693437a4e26ff119" name="af5b45e3d2a2399ad693437a4e26ff119"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af5b45e3d2a2399ad693437a4e26ff119">&#9670;&#160;</a></span>SetOutputMode</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t(* SetOutputMode) (<a class="el" href="Driver__GPIO_8h.html#aa610a72c0924a56973780d7d1d4e538a">ARM_GPIO_Pin_t</a> pin, <a class="el" href="group__gpio__interface__gr.html#ga1fc02461f93fabddb49fd46513c7480b">ARM_GPIO_OUTPUT_MODE</a> mode)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Pointer to <a class="el" href="group__gpio__interface__gr.html#gab47e3266116c09442a3b3672a8224835">ARM_GPIO_SetOutputMode</a> : Set GPIO Output Mode. </p>

</div>
</div>
<a id="a26beab12383d7ec6036da59fc1bb7251" name="a26beab12383d7ec6036da59fc1bb7251"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a26beab12383d7ec6036da59fc1bb7251">&#9670;&#160;</a></span>SetPullResistor</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t(* SetPullResistor) (<a class="el" href="Driver__GPIO_8h.html#aa610a72c0924a56973780d7d1d4e538a">ARM_GPIO_Pin_t</a> pin, <a class="el" href="group__gpio__interface__gr.html#ga3e46add7954c3c9ba9617d630565c913">ARM_GPIO_PULL_RESISTOR</a> resistor)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Pointer to <a class="el" href="group__gpio__interface__gr.html#ga2c6ded4151e86ac0ee84d108fcfb661f">ARM_GPIO_SetPullResistor</a> : Set GPIO Pull Resistor. </p>

</div>
</div>
<a id="aa1e00b5d33fa1f09e96c7b8b1de1deec" name="aa1e00b5d33fa1f09e96c7b8b1de1deec"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa1e00b5d33fa1f09e96c7b8b1de1deec">&#9670;&#160;</a></span>SetEventTrigger</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t(* SetEventTrigger) (<a class="el" href="Driver__GPIO_8h.html#aa610a72c0924a56973780d7d1d4e538a">ARM_GPIO_Pin_t</a> pin, <a class="el" href="group__gpio__interface__gr.html#ga0df966ec6b2ebedd7880a3efc75976cd">ARM_GPIO_EVENT_TRIGGER</a> trigger)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Pointer to <a class="el" href="group__gpio__interface__gr.html#ga03c0ab613fa56b461be82777feea1a6d">ARM_GPIO_SetEventTrigger</a> : Set GPIO Event Trigger. </p>

</div>
</div>
<a id="ae3f787c2130ea5b9fd0246c08054e28a" name="ae3f787c2130ea5b9fd0246c08054e28a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae3f787c2130ea5b9fd0246c08054e28a">&#9670;&#160;</a></span>SetOutput</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void(* SetOutput) (<a class="el" href="Driver__GPIO_8h.html#aa610a72c0924a56973780d7d1d4e538a">ARM_GPIO_Pin_t</a> pin, uint32_t val)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Pointer to <a class="el" href="group__gpio__interface__gr.html#gacdac385c2d5e420b95740749d3f428af">ARM_GPIO_SetOutput</a> : Set GPIO Output Level. </p>

</div>
</div>
<a id="abeffcbd4e00b34c08cd650605f4965d5" name="abeffcbd4e00b34c08cd650605f4965d5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abeffcbd4e00b34c08cd650605f4965d5">&#9670;&#160;</a></span>GetInput</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t(* GetInput) (<a class="el" href="Driver__GPIO_8h.html#aa610a72c0924a56973780d7d1d4e538a">ARM_GPIO_Pin_t</a> pin)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Pointer to <a class="el" href="group__gpio__interface__gr.html#ga6259ec39507a5a59a47ef935bd83e41c">ARM_GPIO_GetInput</a> : Get GPIO Input Level. </p>

</div>
</div>

</div>
</div>
<h2 class="groupheader">Typedef Documentation</h2>
<a id="gaf08560b02fd3c47a474eb9be26631640" name="gaf08560b02fd3c47a474eb9be26631640"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaf08560b02fd3c47a474eb9be26631640">&#9670;&#160;</a></span>ARM_GPIO_SignalEvent_t</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ARM_GPIO_SignalEvent_t</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Provides the typedef for the callback function <a class="el" href="group__gpio__interface__gr.html#ga85dd1634405efb2eae2d3775ecdc6081">ARM_GPIO_SignalEvent</a>.</p>
<p><b>Parameter for:</b></p><ul>
<li><a class="el" href="group__gpio__interface__gr.html#ga10924781db8b42f1fc506bb83a6b7284">ARM_GPIO_Setup</a> </li>
</ul>

</div>
</div>
<h2 class="groupheader">Enumeration Type Documentation</h2>
<a id="gadb33882caa9dc3a481d19ab16573dd4c" name="gadb33882caa9dc3a481d19ab16573dd4c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gadb33882caa9dc3a481d19ab16573dd4c">&#9670;&#160;</a></span>ARM_GPIO_DIRECTION</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__gpio__interface__gr.html#gadb33882caa9dc3a481d19ab16573dd4c">ARM_GPIO_DIRECTION</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>GPIO Direction. </p>
<p>Specifies values for setting the direction.</p>
<p><b>Parameter for:</b></p><ul>
<li><a class="el" href="group__gpio__interface__gr.html#ga518a307a98aec9d227db18819851363a">ARM_GPIO_SetDirection</a> </li>
</ul>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="gadb33882caa9dc3a481d19ab16573dd4ca58fb239e72a3f93e94f2efe71477bd18" name="gadb33882caa9dc3a481d19ab16573dd4ca58fb239e72a3f93e94f2efe71477bd18"></a>ARM_GPIO_INPUT&#160;</td><td class="fielddoc"><p>Input (default) </p>
</td></tr>
<tr><td class="fieldname"><a id="gadb33882caa9dc3a481d19ab16573dd4cad4685767096d17e5acb6abf6c6495d06" name="gadb33882caa9dc3a481d19ab16573dd4cad4685767096d17e5acb6abf6c6495d06"></a>ARM_GPIO_OUTPUT&#160;</td><td class="fielddoc"><p>Output. </p>
</td></tr>
</table>

</div>
</div>
<a id="ga1fc02461f93fabddb49fd46513c7480b" name="ga1fc02461f93fabddb49fd46513c7480b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga1fc02461f93fabddb49fd46513c7480b">&#9670;&#160;</a></span>ARM_GPIO_OUTPUT_MODE</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__gpio__interface__gr.html#ga1fc02461f93fabddb49fd46513c7480b">ARM_GPIO_OUTPUT_MODE</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>GPIO Output Mode. </p>
<p>Specifies values for setting the output mode.</p>
<p><b>Parameter for:</b></p><ul>
<li><a class="el" href="group__gpio__interface__gr.html#gab47e3266116c09442a3b3672a8224835">ARM_GPIO_SetOutputMode</a> </li>
</ul>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="ga1fc02461f93fabddb49fd46513c7480bac4b9f2ea6c849cf47d9ed2cf7ccf7a93" name="ga1fc02461f93fabddb49fd46513c7480bac4b9f2ea6c849cf47d9ed2cf7ccf7a93"></a>ARM_GPIO_PUSH_PULL&#160;</td><td class="fielddoc"><p>Push-pull (default) </p>
</td></tr>
<tr><td class="fieldname"><a id="ga1fc02461f93fabddb49fd46513c7480ba0a24a2221d2d9a31dff9a81e3b7e888f" name="ga1fc02461f93fabddb49fd46513c7480ba0a24a2221d2d9a31dff9a81e3b7e888f"></a>ARM_GPIO_OPEN_DRAIN&#160;</td><td class="fielddoc"><p>Open-drain. </p>
</td></tr>
</table>

</div>
</div>
<a id="ga3e46add7954c3c9ba9617d630565c913" name="ga3e46add7954c3c9ba9617d630565c913"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga3e46add7954c3c9ba9617d630565c913">&#9670;&#160;</a></span>ARM_GPIO_PULL_RESISTOR</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__gpio__interface__gr.html#ga3e46add7954c3c9ba9617d630565c913">ARM_GPIO_PULL_RESISTOR</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>GPIO Pull Resistor. </p>
<p>Specifies values for setting the pull resistor.</p>
<p><b>Parameter for:</b></p><ul>
<li><a class="el" href="group__gpio__interface__gr.html#ga2c6ded4151e86ac0ee84d108fcfb661f">ARM_GPIO_SetPullResistor</a> </li>
</ul>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="ga3e46add7954c3c9ba9617d630565c913a187a7bb55ed81726845c8c194f28d49c" name="ga3e46add7954c3c9ba9617d630565c913a187a7bb55ed81726845c8c194f28d49c"></a>ARM_GPIO_PULL_NONE&#160;</td><td class="fielddoc"><p>None (default) </p>
</td></tr>
<tr><td class="fieldname"><a id="ga3e46add7954c3c9ba9617d630565c913a73c7ba703ce0cd40f77392bb28a4a188" name="ga3e46add7954c3c9ba9617d630565c913a73c7ba703ce0cd40f77392bb28a4a188"></a>ARM_GPIO_PULL_UP&#160;</td><td class="fielddoc"><p>Pull-up. </p>
</td></tr>
<tr><td class="fieldname"><a id="ga3e46add7954c3c9ba9617d630565c913a4fc8779c762a502dd029b7a676cc022b" name="ga3e46add7954c3c9ba9617d630565c913a4fc8779c762a502dd029b7a676cc022b"></a>ARM_GPIO_PULL_DOWN&#160;</td><td class="fielddoc"><p>Pull-down. </p>
</td></tr>
</table>

</div>
</div>
<a id="ga0df966ec6b2ebedd7880a3efc75976cd" name="ga0df966ec6b2ebedd7880a3efc75976cd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga0df966ec6b2ebedd7880a3efc75976cd">&#9670;&#160;</a></span>ARM_GPIO_EVENT_TRIGGER</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__gpio__interface__gr.html#ga0df966ec6b2ebedd7880a3efc75976cd">ARM_GPIO_EVENT_TRIGGER</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>GPIO Event Trigger. </p>
<p>Specifies values for setting the event trigger.</p>
<p><b>Parameter for:</b></p><ul>
<li><a class="el" href="group__gpio__interface__gr.html#ga03c0ab613fa56b461be82777feea1a6d">ARM_GPIO_SetEventTrigger</a> </li>
</ul>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="ga0df966ec6b2ebedd7880a3efc75976cda93171249f006c83b7661df73d976556d" name="ga0df966ec6b2ebedd7880a3efc75976cda93171249f006c83b7661df73d976556d"></a>ARM_GPIO_TRIGGER_NONE&#160;</td><td class="fielddoc"><p>None (default) </p>
</td></tr>
<tr><td class="fieldname"><a id="ga0df966ec6b2ebedd7880a3efc75976cdaba20b1e31878cce514240db48ff72936" name="ga0df966ec6b2ebedd7880a3efc75976cdaba20b1e31878cce514240db48ff72936"></a>ARM_GPIO_TRIGGER_RISING_EDGE&#160;</td><td class="fielddoc"><p>Rising-edge. </p>
</td></tr>
<tr><td class="fieldname"><a id="ga0df966ec6b2ebedd7880a3efc75976cdafa65dc9f0e518b4d640e69e194ffd847" name="ga0df966ec6b2ebedd7880a3efc75976cdafa65dc9f0e518b4d640e69e194ffd847"></a>ARM_GPIO_TRIGGER_FALLING_EDGE&#160;</td><td class="fielddoc"><p>Falling-edge. </p>
</td></tr>
<tr><td class="fieldname"><a id="ga0df966ec6b2ebedd7880a3efc75976cdaf08214415e90ef3b65e3438b1b523873" name="ga0df966ec6b2ebedd7880a3efc75976cdaf08214415e90ef3b65e3438b1b523873"></a>ARM_GPIO_TRIGGER_EITHER_EDGE&#160;</td><td class="fielddoc"><p>Either edge (rising and falling) </p>
</td></tr>
</table>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="ga10924781db8b42f1fc506bb83a6b7284" name="ga10924781db8b42f1fc506bb83a6b7284"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga10924781db8b42f1fc506bb83a6b7284">&#9670;&#160;</a></span>ARM_GPIO_Setup()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t ARM_GPIO_Setup </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="Driver__GPIO_8h.html#aa610a72c0924a56973780d7d1d4e538a">ARM_GPIO_Pin_t</a>&#160;</td>
          <td class="paramname"><em>pin</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__gpio__interface__gr.html#gaf08560b02fd3c47a474eb9be26631640">ARM_GPIO_SignalEvent_t</a>&#160;</td>
          <td class="paramname"><em>cb_event</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Setup GPIO Interface. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">pin</td><td>GPIO Pin </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">cb_event</td><td>Pointer to <a class="el" href="group__gpio__interface__gr.html#ga85dd1634405efb2eae2d3775ecdc6081">ARM_GPIO_SignalEvent</a> </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__execution__status.html">Status Error Codes</a></dd></dl>
<p>The function <b>ARM_GPIO_Setup</b> sets-up the specified <em>pin</em> as GPIO with default configuration. Pin is configured as input without pull-resistor and without event trigger.</p>
<p>The parameter <em>cb_event</em> specifies a pointer to the <a class="el" href="group__gpio__interface__gr.html#ga85dd1634405efb2eae2d3775ecdc6081">ARM_GPIO_SignalEvent</a> callback function to register. Use a NULL pointer when no callback events are required or to deregister a callback function. </p>

</div>
</div>
<a id="ga518a307a98aec9d227db18819851363a" name="ga518a307a98aec9d227db18819851363a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga518a307a98aec9d227db18819851363a">&#9670;&#160;</a></span>ARM_GPIO_SetDirection()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t ARM_GPIO_SetDirection </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="Driver__GPIO_8h.html#aa610a72c0924a56973780d7d1d4e538a">ARM_GPIO_Pin_t</a>&#160;</td>
          <td class="paramname"><em>pin</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__gpio__interface__gr.html#gadb33882caa9dc3a481d19ab16573dd4c">ARM_GPIO_DIRECTION</a>&#160;</td>
          <td class="paramname"><em>direction</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set GPIO Direction. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">pin</td><td>GPIO Pin </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">direction</td><td><a class="el" href="group__gpio__interface__gr.html#gadb33882caa9dc3a481d19ab16573dd4c">ARM_GPIO_DIRECTION</a> </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__execution__status.html">Status Error Codes</a></dd></dl>
<p>The function <b>ARM_GPIO_SetDirection</b> configures the direction of the specified <em>pin</em>.</p>
<p>Direction is specified with parameter <em>direction:</em> </p><ul>
<li><a class="el" href="Driver__GPIO_8h.html#gadb33882caa9dc3a481d19ab16573dd4ca58fb239e72a3f93e94f2efe71477bd18">ARM_GPIO_INPUT</a> : Input (default),</li>
<li><a class="el" href="Driver__GPIO_8h.html#gadb33882caa9dc3a481d19ab16573dd4cad4685767096d17e5acb6abf6c6495d06">ARM_GPIO_OUTPUT</a> : Output. </li>
</ul>

</div>
</div>
<a id="gab47e3266116c09442a3b3672a8224835" name="gab47e3266116c09442a3b3672a8224835"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gab47e3266116c09442a3b3672a8224835">&#9670;&#160;</a></span>ARM_GPIO_SetOutputMode()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t ARM_GPIO_SetOutputMode </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="Driver__GPIO_8h.html#aa610a72c0924a56973780d7d1d4e538a">ARM_GPIO_Pin_t</a>&#160;</td>
          <td class="paramname"><em>pin</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__gpio__interface__gr.html#ga1fc02461f93fabddb49fd46513c7480b">ARM_GPIO_OUTPUT_MODE</a>&#160;</td>
          <td class="paramname"><em>mode</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set GPIO Output Mode. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">pin</td><td>GPIO Pin </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">mode</td><td><a class="el" href="group__gpio__interface__gr.html#ga1fc02461f93fabddb49fd46513c7480b">ARM_GPIO_OUTPUT_MODE</a> </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__execution__status.html">Status Error Codes</a></dd></dl>
<p>The function <b>ARM_GPIO_SetOutputMode</b> configures the output mode of the specified <em>pin</em>.</p>
<p>Output mode is specified with parameter <em>mode:</em> </p><ul>
<li><a class="el" href="Driver__GPIO_8h.html#ga1fc02461f93fabddb49fd46513c7480bac4b9f2ea6c849cf47d9ed2cf7ccf7a93">ARM_GPIO_PUSH_PULL</a> : Push-pull (default),</li>
<li><a class="el" href="Driver__GPIO_8h.html#ga1fc02461f93fabddb49fd46513c7480ba0a24a2221d2d9a31dff9a81e3b7e888f">ARM_GPIO_OPEN_DRAIN</a> : Open-drain.</li>
</ul>
<dl class="section note"><dt>Note</dt><dd>Output mode is relevant only when the pin is configured as output. </dd></dl>

</div>
</div>
<a id="ga2c6ded4151e86ac0ee84d108fcfb661f" name="ga2c6ded4151e86ac0ee84d108fcfb661f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga2c6ded4151e86ac0ee84d108fcfb661f">&#9670;&#160;</a></span>ARM_GPIO_SetPullResistor()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t ARM_GPIO_SetPullResistor </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="Driver__GPIO_8h.html#aa610a72c0924a56973780d7d1d4e538a">ARM_GPIO_Pin_t</a>&#160;</td>
          <td class="paramname"><em>pin</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__gpio__interface__gr.html#ga3e46add7954c3c9ba9617d630565c913">ARM_GPIO_PULL_RESISTOR</a>&#160;</td>
          <td class="paramname"><em>resistor</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set GPIO Pull Resistor. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">pin</td><td>GPIO Pin </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">resistor</td><td><a class="el" href="group__gpio__interface__gr.html#ga3e46add7954c3c9ba9617d630565c913">ARM_GPIO_PULL_RESISTOR</a> </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__execution__status.html">Status Error Codes</a></dd></dl>
<p>The function <b>ARM_GPIO_SetPullResistor</b> configures the pull resistor of the specified <em>pin</em>.</p>
<p>Pull resistor is specified with parameter <em>resistor:</em> </p><ul>
<li><a class="el" href="Driver__GPIO_8h.html#ga3e46add7954c3c9ba9617d630565c913a187a7bb55ed81726845c8c194f28d49c">ARM_GPIO_PULL_NONE</a> : None (default),</li>
<li><a class="el" href="Driver__GPIO_8h.html#ga3e46add7954c3c9ba9617d630565c913a73c7ba703ce0cd40f77392bb28a4a188">ARM_GPIO_PULL_UP</a> : Pull-up,</li>
<li><a class="el" href="Driver__GPIO_8h.html#ga3e46add7954c3c9ba9617d630565c913a4fc8779c762a502dd029b7a676cc022b">ARM_GPIO_PULL_DOWN</a> : Pull-down.</li>
</ul>
<dl class="section note"><dt>Note</dt><dd>Pull resistor applies to the pin regardless of pin direction. </dd></dl>

</div>
</div>
<a id="ga03c0ab613fa56b461be82777feea1a6d" name="ga03c0ab613fa56b461be82777feea1a6d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga03c0ab613fa56b461be82777feea1a6d">&#9670;&#160;</a></span>ARM_GPIO_SetEventTrigger()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t ARM_GPIO_SetEventTrigger </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="Driver__GPIO_8h.html#aa610a72c0924a56973780d7d1d4e538a">ARM_GPIO_Pin_t</a>&#160;</td>
          <td class="paramname"><em>pin</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__gpio__interface__gr.html#ga0df966ec6b2ebedd7880a3efc75976cd">ARM_GPIO_EVENT_TRIGGER</a>&#160;</td>
          <td class="paramname"><em>trigger</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set GPIO Event Trigger. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">pin</td><td>GPIO Pin </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">trigger</td><td><a class="el" href="group__gpio__interface__gr.html#ga0df966ec6b2ebedd7880a3efc75976cd">ARM_GPIO_EVENT_TRIGGER</a> </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__execution__status.html">Status Error Codes</a></dd></dl>
<p>The function <b>ARM_GPIO_SetEventTrigger</b> configures the event trigger of the specified <em>pin</em>.</p>
<p>Event trigger is specified with parameter <em>trigger:</em> </p><ul>
<li><a class="el" href="Driver__GPIO_8h.html#ga0df966ec6b2ebedd7880a3efc75976cda93171249f006c83b7661df73d976556d">ARM_GPIO_TRIGGER_NONE</a> : None (default),</li>
<li><a class="el" href="Driver__GPIO_8h.html#ga0df966ec6b2ebedd7880a3efc75976cdaba20b1e31878cce514240db48ff72936">ARM_GPIO_TRIGGER_RISING_EDGE</a> : Rising-edge,</li>
<li><a class="el" href="Driver__GPIO_8h.html#ga0df966ec6b2ebedd7880a3efc75976cdafa65dc9f0e518b4d640e69e194ffd847">ARM_GPIO_TRIGGER_FALLING_EDGE</a> : Falling-edge,</li>
<li><a class="el" href="Driver__GPIO_8h.html#ga0df966ec6b2ebedd7880a3efc75976cdaf08214415e90ef3b65e3438b1b523873">ARM_GPIO_TRIGGER_EITHER_EDGE</a> : Either edge (rising and falling).</li>
</ul>
<dl class="section note"><dt>Note</dt><dd>To disable event trigger use trigger parameter <a class="el" href="Driver__GPIO_8h.html#ga0df966ec6b2ebedd7880a3efc75976cda93171249f006c83b7661df73d976556d">ARM_GPIO_TRIGGER_NONE</a>. </dd></dl>

</div>
</div>
<a id="gacdac385c2d5e420b95740749d3f428af" name="gacdac385c2d5e420b95740749d3f428af"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gacdac385c2d5e420b95740749d3f428af">&#9670;&#160;</a></span>ARM_GPIO_SetOutput()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ARM_GPIO_SetOutput </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="Driver__GPIO_8h.html#aa610a72c0924a56973780d7d1d4e538a">ARM_GPIO_Pin_t</a>&#160;</td>
          <td class="paramname"><em>pin</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>val</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set GPIO Output Level. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">pin</td><td>GPIO Pin </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">val</td><td>GPIO Pin Level (0 or 1)</td></tr>
  </table>
  </dd>
</dl>
<p>The function <b>ARM_GPIO_SetOutput</b> sets the level of the specified <em>pin</em> defined as output to the value specified by <em>val</em>.</p>
<dl class="section note"><dt>Note</dt><dd>When a pin is configured as input, the level is latched and will be driven once the pin is configured as output. </dd></dl>

</div>
</div>
<a id="ga6259ec39507a5a59a47ef935bd83e41c" name="ga6259ec39507a5a59a47ef935bd83e41c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga6259ec39507a5a59a47ef935bd83e41c">&#9670;&#160;</a></span>ARM_GPIO_GetInput()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t ARM_GPIO_GetInput </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="Driver__GPIO_8h.html#aa610a72c0924a56973780d7d1d4e538a">ARM_GPIO_Pin_t</a>&#160;</td>
          <td class="paramname"><em>pin</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get GPIO Input Level. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">pin</td><td>GPIO Pin </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>GPIO Pin Level (0 or 1)</dd></dl>
<p>The function <b>ARM_GPIO_GetInput</b> reads the level of the specified <em>pin</em>. </p>

</div>
</div>
<a id="ga85dd1634405efb2eae2d3775ecdc6081" name="ga85dd1634405efb2eae2d3775ecdc6081"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga85dd1634405efb2eae2d3775ecdc6081">&#9670;&#160;</a></span>ARM_GPIO_SignalEvent()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ARM_GPIO_SignalEvent </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="Driver__GPIO_8h.html#aa610a72c0924a56973780d7d1d4e538a">ARM_GPIO_Pin_t</a>&#160;</td>
          <td class="paramname"><em>pin</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>event</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Signal GPIO Events. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">pin</td><td>GPIO Pin on which event occurred </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">event</td><td><a class="el" href="group__GPIO__events.html">GPIO Events</a> notification mask</td></tr>
  </table>
  </dd>
</dl>
<p>The function <b>ARM_GPIO_SignalEvent</b> is a callback functions registered by the function <a class="el" href="group__gpio__interface__gr.html#ga10924781db8b42f1fc506bb83a6b7284">ARM_GPIO_Setup</a>. It is called by the GPIO driver to notify the application about <a class="el" href="group__GPIO__events.html">GPIO Events</a> occurred during operation.</p>
<p>The parameter <em>pin</em> indicates on which pin the event occurred and parameter <em>event</em> indicates one or more events that occurred.</p>
<p>The following events can be generated:</p>
<table class="cmtable">
<tr>
<th>Parameter <em>event</em> </th><th>Bit </th><th>Description   </th></tr>
<tr>
<td><a class="el" href="group__GPIO__events.html#ga5b3eebcd265811423a9e3cfc86de7981">ARM_GPIO_EVENT_RISING_EDGE</a> </td><td>0 </td><td>Occurs when rising-edge is detected on the indicated pin.   </td></tr>
<tr>
<td><a class="el" href="group__GPIO__events.html#ga786063babcfbf55e38bb09e62e6b4e8e">ARM_GPIO_EVENT_FALLING_EDGE</a> </td><td>1 </td><td>Occurs when falling-edge is detected on the indicated pin.   </td></tr>
<tr>
<td><a class="el" href="group__GPIO__events.html#gac2d649951a265a3508b16b0775cd2647">ARM_GPIO_EVENT_EITHER_EDGE</a> </td><td>2 </td><td>Occurs when either edge is detected on the indicated pin when trigger is configured as <a class="el" href="Driver__GPIO_8h.html#ga0df966ec6b2ebedd7880a3efc75976cdaf08214415e90ef3b65e3438b1b523873">ARM_GPIO_TRIGGER_EITHER_EDGE</a> and hardware is not able to distinguish between rising and falling edge.   </td></tr>
</table>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="footer">
      <script type="text/javascript">
        <!--
        writeFooter.call(this);
        //-->
      </script> 
    </li>
  </ul>
</div>
</body>
</html>
